/**
 @文件名： menuApi
 @来源：YongPing.Wang|2023/11/21 11:19
 @描述：菜单
 **/
import { post } from '@/config/apiConfig/https.ts'
import { type IMenu } from '@/store/menuInfo.ts'
import { type IApi } from '@/api/types.ts'

// 获取菜单
export async function getMenuApi(): Promise<IApi<IMenu[]>> {
  return await post([`/iot/v1/common/current/user/menu/list`])
}
